package com.lantosec.hmrp.modules.archives.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.lantosec.hmrp.modules.archives.entity.UserEdu;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 教育信息表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserEdu对象", description="教育信息表")
public class UserEduVO extends BaseVO<UserEdu> {
    private static final long serialVersionUID = 1L;


    public UserEduVO(UserEdu entity){
        this.userEduId = entity.getUserEduId();
        this.userId = entity.getUserId();
        this.startDate = entity.getStartDate();
        this.endDate = entity.getEndDate();
        this.gradSchool = entity.getGradSchool();
        this.speciality = entity.getSpeciality();
        this.education = entity.getEducation();
        this.degree = entity.getDegree();
        this.eduSystem = entity.getEduSystem();
        this.diplomaNo = entity.getDiplomaNo();
        this.diplomaPhotocopy = entity.getDiplomaPhotocopy();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserEdu convertToEntity(){
        return new UserEdu(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userEduId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "入学时间")
    private String startDate;

    @ApiModelProperty(value = "毕业时间")
    private String endDate;

    @ApiModelProperty(value = "毕业学校")
    private String gradSchool;

    @ApiModelProperty(value = "专业")
    private String speciality;

    @ApiModelProperty(value = "学历，字典值")
    private String education;

    @ApiModelProperty(value = "学位，字典值")
    private String degree;

    @ApiModelProperty(value = "学制")
    private BigDecimal eduSystem;

    @ApiModelProperty(value = "学位证书编号")
    private String diplomaNo;

    @ApiModelProperty(value = "学位证书影印件")
    private String diplomaPhotocopy;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "学历名称")
    private String educationName;
    @ApiModelProperty(value = "学位名称")
    private String degreeName;
    @ApiModelProperty(value = "印件路径")
    private List savePath;
    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
